package com.sgb.kjwl.api;

import com.sgb.kjwl.api.net.GoodsNet;
import com.sgb.kjwl.api.net.EnterPriseNewNet;
import com.sgb.kjwl.api.net.CommonNet;
import com.sgb.kjwl.api.net.GoodsNet;
import com.sgb.kjwl.api.net.LogisticsNet;
import com.sgb.kjwl.api.net.TeamNet;
import com.sgb.kjwl.api.net.UploadNet;
import com.sgb.kjwl.api.service.GoodsAPI;
import com.sgb.kjwl.api.service.EnterPriseNewApi;
import com.sgb.kjwl.api.service.CommonAPI;
import com.sgb.kjwl.api.service.GoodsAPI;
import com.sgb.kjwl.api.service.GoodsReleasedAPI;
import com.sgb.kjwl.api.service.LogisticsAPI;
import com.sgb.kjwl.api.service.LogisticsTestAPI;
import com.sgb.kjwl.api.service.MaterialAPI;
import com.sgb.kjwl.api.service.MemberPriceApi;
import com.sgb.kjwl.api.service.NewUploadAPI;
import com.sgb.kjwl.api.service.ProductInquiryAPI;
import com.sgb.kjwl.api.service.ShoppingCarNewOrderAPI;
import com.sgb.kjwl.api.service.TeamNewInterfaceAPI;
import com.sgb.kjwl.api.service.UploadAPI;

@Deprecated
public class NewAPIManager {

    private static NewAPIManager apiManager;

    /**
     * 商品发布网络请求
     */
    private final GoodsNet goodsNet = new GoodsNet();

    /**
     * 公共模块儿网络请求
     */
    private final CommonNet commonNet = new CommonNet();

    /**
     * 接口初始化入口
     */
    public static NewAPIManager getInstance() {
        if (apiManager == null) {
            apiManager = new NewAPIManager();
        }
        return apiManager;
    }

    public UploadAPI getUploadAPI() {
        return UploadNet.getInstance().getService();
    }

    public NewUploadAPI getNewUploadAPI() {
        return UploadNet.getInstance().getNewUploadService();
    }

    public LogisticsAPI getLogisticsAPI() {
        return LogisticsNet.getInstance().getService();
    }

    public LogisticsTestAPI getLogisticsLocalAPI() {
        return LogisticsNet.getInstance().getLocalService();
    }

    public TeamNewInterfaceAPI getTeamNewInterfaceAPI() {
        return TeamNet.getInstance().getService();
    }

    public GoodsReleasedAPI getGoodsReleasedAPI() {
        return goodsNet.getGoodsReleasedAPI();
    }

    public GoodsAPI getGoodsAPI() {
        return goodsNet.getGoodsAPI();
    }


    public MemberPriceApi getMemberPriceAPI(){
        return goodsNet.getMemberPriceApi();
    }

    public MaterialAPI getMaterialAPI() {
        return goodsNet.getMaterialAPI();
    }

    public ShoppingCarNewOrderAPI getShoppingCarNewOrderAPI() {
        return goodsNet.getShoppingCarNewOrderAPI();
    }

    public CommonAPI getCommonAPI() {
        return commonNet.getCommonAPI();
    }


    public ProductInquiryAPI getProductInquiryAPI() {
        return goodsNet.getProductInquiryAPI();
    }


    public EnterPriseNewApi getEnterPrisenewAPI() {
        return EnterPriseNewNet.getInstance().getService();
    }


}
